package com.jdrx.sw.sewage.common.enums;

import com.jdrx.sw.sewage.common.constant.Constant;

/**
 * AI预测
 */
public enum EForecastGrade {
    LOW(1, "低"),
    CENTRE(2, "中"),
    HIGH(3, "高");

    private Integer key;
    private String value;

    EForecastGrade(Integer key, String value) {
        this.key = key;
        this.value = value;
    }

    public static String getName(Integer key) {
        for (EForecastGrade status : EForecastGrade.values()) {
            if (key.intValue() == status.getKey()) {
                return status.getValue();
            }
        }
        return Constant.EMPTY;
    }

    public Integer getKey() {
        return key;
    }

    public void setKey(Integer key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
